import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { store } from './store/index'
import './router/route-guard'

import ElementUI from 'element-plus'
import i18n from '@/i18n/i18n'
import 'element-plus/dist/index.css'
import '@/assets/style/blue/index.less'

const app = createApp(App)
/* 定义全局变量 */
app.config.globalProperties.$isCollapse = false
app.config.globalProperties.$overall = {
  isCollapse: false,
  wsMessage: [] as any
}
/* eslint-disable */
const { t, locale } = i18n.global

const setupApp = () => {
  app.use(store)
  app.use(router)
  app.use(ElementUI)
  app.mount('#app')
}

setupApp()